Skip to content

fix: BROS-14: Optimize yarn test:e2e #7530

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 40 commits into from
May 27, 2025
Merged

fix: BROS-14: Optimize yarn test:e2e #7530

merged 40 commits into from
May 27, 2025

Conversation

niklub
Copy link
Collaborator

@niklub niklub commented May 14, 2025


Summary of the Pull Request

This Pull Request introduces the following changes across multiple components related to testing and error handling:
Test Workflow Update: Modified GitHub Actions workflow to run end-to-end tests using a more specific command (yarn lsf:e2e:ci).

Workflow Update:

  • Modified .github/workflows/tests-yarn-e2e.yml to use CI specified running command.

AudioUltra fixes

  • Error rendering logic moved to the parent component to be able to be relevant thanks to the observer.

Testing Improvements:

  • Remove unnecessary waitForAction
  • Replaced I.wait with I.waitTicks for more readability and understandability
  • Added execution waiting to tests where it's needed
  • Reuse helpers more often
  • Temporary skip outdated tests
  • Introduced timeout mechanisms for asynchronous audio loading.
  • Move some tests to Cypress to avoid running them in parallel which makes them flaky

Helper and Utility Enhancements:

  • Added seeFocusedElement and hasError methods to improve usability for test writing.
  • Updated Playwright and other test helpers with additional configuration.
  • Fix waitForAudio conditions

Copy link

netlify bot commented May 14, 2025

Deploy Preview for heartex-docs ready!

Name Link
🔨 Latest commit f44ed36
🔍 Latest deploy log https://app.netlify.com/projects/heartex-docs/deploys/6835b4ecbb2968000835b282
😎 Deploy Preview https://deploy-preview-7530--heartex-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

netlify bot commented May 14, 2025

Deploy Preview for label-studio-storybook ready!

Name Link
🔨 Latest commit f44ed36
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-storybook/deploys/6835b4ecab793e00081fb0e5
😎 Deploy Preview https://deploy-preview-7530--label-studio-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot added the fix label May 14, 2025
Copy link

netlify bot commented May 14, 2025

Deploy Preview for label-studio-docs-new-theme ready!

Name Link
🔨 Latest commit f44ed36
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-docs-new-theme/deploys/6835b4ec30bbb300083ccee9
😎 Deploy Preview https://deploy-preview-7530--label-studio-docs-new-theme.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@niklub
Copy link
Collaborator Author

niklub commented May 14, 2025

/git merge

Workflow run
Successfully merged: create mode 100644 .github/workflows/apply-linters.yml

@niklub niklub requested a review from a team as a code owner May 15, 2025 14:18
@Gondragos Gondragos requested a review from a team as a code owner May 22, 2025 05:48
Copy link

netlify bot commented May 22, 2025

Deploy Preview for label-studio-playground ready!

Name Link
🔨 Latest commit f44ed36
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-playground/deploys/6835b4eccf5c6000086dd786
😎 Deploy Preview https://deploy-preview-7530--label-studio-playground.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Gondragos
Copy link
Collaborator

Gondragos commented May 22, 2025

/git merge

Workflow run
Successfully merged: create mode 100644 web/libs/ui/src/lib/Tooltip/tooltip.stories.tsx

@Gondragos Gondragos requested a review from hlomzik May 23, 2025 17:00
@Gondragos
Copy link
Collaborator

Gondragos commented May 26, 2025

/git merge

Workflow run
Successfully merged: create mode 100644 web/apps/playground/src/hooks/useCopyText.ts

@@ -22,4 +22,8 @@ module.exports = () =>
await action();
this._performActionEnd(name);
},

waitTicks(n) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love this approach and name!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are we waiting for here? Could it also be waitTicks()?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case ticks were not a stable solution. Somehow it needs more time to wait.

Copy link
Collaborator

@hlomzik hlomzik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add todo comments to all skipped tests, so we'll know what to do with them later. The rest is great, just couple of small questions!

Annotated and skipped three e2e tests due to outdated or problematic functionality:
- Taxonomy read-only in annotation history.
- Sync issues with multiple audio playback.
- Removing textarea items in 'region-list' mode.
Each test now includes a TODO comment to clarify necessary actions for future fixes.
@Gondragos Gondragos requested a review from hlomzik May 27, 2025 12:29
@Gondragos Gondragos enabled auto-merge (squash) May 27, 2025 12:46
@Gondragos
Copy link
Collaborator

Gondragos commented May 27, 2025

/git merge

Workflow run
Successfully merged: create mode 100644 docs/themes/v2/source/images/import-export/keypoints.png

@Gondragos Gondragos merged commit 1ae7f3c into develop May 27, 2025
43 checks passed
@robot-ci-heartex robot-ci-heartex deleted the fb-bros-14 branch May 27, 2025 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants